package com.wind.trademark.task.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * TkTaskCategory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tk_task_category", catalog = "mypro")
public class TkTaskCategory implements java.io.Serializable {

	// Fields

	private Long id;
	private Long taskId;
	private Long categoryId;

	// Constructors

	/** default constructor */
	public TkTaskCategory() {
	}

	/** full constructor */
	public TkTaskCategory(Long id, Long taskId, Long categoryId) {
		this.id = id;
		this.taskId = taskId;
		this.categoryId = categoryId;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "generator")    
	@GenericGenerator(name = "generator", strategy = "increment") 
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "TASK_ID", nullable = false)
	public Long getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	@Column(name = "CATEGORY_ID", nullable = false)
	public Long getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

}